package com.learning.jquizenglish.model;

import java.util.ArrayList;

import com.learning.jquizenglish.network.JQuizEnglishApi.Level;
import com.learning.jquizenglish.network.JQuizEnglishApi.QuestionType;

public class DoQuizSession {

	private static DoQuizSession INSTANCE = null;
	private Level questionLevel;
	private QuestionType questionType;
	private ArrayList<QuestionModel> listQuestions;
	
	public static DoQuizSession getInstance(){
		if (INSTANCE == null) {
			INSTANCE = new DoQuizSession();
		}
		return INSTANCE;
	}

	public Level getQuestionLevel() {
		return questionLevel;
	}

	public void setQuestionLevel(Level questionLevel) {
		this.questionLevel = questionLevel;
	}

	public ArrayList<QuestionModel> getListQuestions() {
		return listQuestions;
	}

	public void setListQuestions(ArrayList<QuestionModel> listQuestions) {
		this.listQuestions = listQuestions;
	}
	
	public QuestionType getQuestionType() {
		return questionType;
	}

	public void setQuestionType(QuestionType questionType) {
		this.questionType = questionType;
	}

	public void clearSession(){
		questionType = null;
		questionLevel = null;
		listQuestions = null;
	}
	
}
